#ifndef __COREGAME_H_
#define __COREGAME_H_
#include "MyString.h"
#include "DynamicArray.h"
typedef struct Player
{
    int HP;
    int attack;
    int monery;
    int x;
    int y;
    
}Player;

typedef struct Shore
{
   
    int name1;
    int name2;
    int value1;
    int value2;
    mystring namea;
    mystring nameb;
}Shore;

typedef struct Monster
{
    mystring name;
    int HP;
    int attack;
    int x;
    int y;
}Monster;

typedef struct Treasure
{
    mystring name;
    int value;
    int sign;
    int x;
    int y;
}Treasure;

void InitPlayer(Player *player);
int InitShore(Shore *shore);
int GetRandNumber(int max);
Monster* CreateMonster(const char*name,int hp,int attack);
Treasure*CreateTreasure(const char *name,int value,int sign);
DynamicArray *CreateDynamicAarray(DynamicArray *array,int  number);
int InitMonsters(DynamicArray *monster);
int InitTreasure(DynamicArray *treasure);
void MakeMove(Player *player,int dx,int dy);
int Battle(Player *player,Monster *monster);
void PersonalAttibutes(Player *player);
void StoreCenter(Shore *shore,Player *player);
void Map(Player *player);


#endif
